import request from '@/utils/request'

// 下推公共接口
export function pushPublic(data) {
  return request({
    url: '/common/push',
    method: 'post',
    data
  })
}
// 下推生产领料
export function pushPickmtrl(data) {
  return request({
    url: '/tPrdPickmtrl/pushPickmtrl',
    method: 'post',
    data
  })
}
// 下推生产领料
export function isAblePush(data) {
  return request({
    url: '/tPrdMo/isAblePush',
    method: 'post',
    data
  })
}
// 生产领料单下推明细
export function queryMtrlDetails(params) {
  return request({
    url: '/tPrdPpbom/queryMtrlDetails',
    method: 'get',
    params
  })
}
// 委外领料单下推明细
export function outMtrlDetails(params) {
  return request({
    url: '/tSubPpbom/queryMtrlDetails',
    method: 'get',
    params
  })
}
// 生产订单下推明细
export function queryStockDetails(params) {
  return request({
    url: '/tPrdMoentry/queryStockDetails',
    method: 'get',
    params
  })
}
// 委外订单下推明细
export function outStockDetails(params) {
  return request({
    url: '/tSubReqorderentry/queryStockDetails',
    method: 'get',
    params
  })
}

// 生产补料列表
export function querySupplementList(data) {
  return request({
    url: '/tPrdSupplement/querySupplementList',
    method: 'post',
    data
  })
}
// 更新生产补料列表
export function updateSuppleDetails(data) {
  return request({
    url: '/tPrdSupplement/updateSuppleDetails',
    method: 'post',
    data
  })
}
// 生产补料详情
export function querySupplementDetails(params) {
  return request({
    url: '/tPrdSupplement/querySupplementDetails',
    method: 'get',
    params
  })
}
// 反提交生产补料列表
export function notsubmitPrdSupplement(data) {
  return request({
    url: '/tPrdSupplement/notsubmitPrdSupplement',
    method: 'post',
    data
  })
}
// 提交生产补料列表
export function submitPrdSupplement(data) {
  return request({
    url: '/tPrdSupplement/submitPrdSupplement',
    method: 'post',
    data
  })
}
// 反审核生产补料列表
export function notauditPrdSupplements(data) {
  return request({
    url: '/tPrdSupplement/notauditPrdSupplements',
    method: 'post',
    data
  })
}
// 审核生产补料列表
export function auditPrdSupplements(data) {
  return request({
    url: '/tPrdSupplement/auditPrdSupplements',
    method: 'post',
    data
  })
}
// 删除生产补料列表
export function delPrdSupplements(data) {
  return request({
    url: '/tPrdSupplement/delPrdSupplements',
    method: 'post',
    data
  })
}
